html, body, #app, .layout, .sub-layout, .sider {
    height: 100%;
}

.layout {
    border: none !important;
    border-radius: 0 !important;
    background: #f5f7f9;
    position: relative;
    overflow: hidden;
}

.layout-header-bar {
    background: #fff !important;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
    position: fixed;
    top: 0;
    right: 0;
    left: 200px;
    z-index: 11;
}

.layout .ivu-layout-content {
    margin: 84px 20px 0px 20px !important;
    background: none !important;
}

.sider-menus {
    background: #19212c;
}

.sider {
    background: #19212c !important;
}

.sider .menu {
    background: #19212c;
}

.sider .menu .li:hover {
    background: #19212c !important;
}

.sider-menus .sider-top-logo {
    height: 64px;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    line-height: 64px;
}

/*选中的菜单*/
.ivu-menu-dark.ivu-menu-vertical .ivu-menu-item-active:not(.ivu-menu-submenu) {
    background: #2d8cf0 !important;
    color: #fff !important;
}

/*悬停的菜单*/
.ivu-menu-dark.ivu-menu-vertical .ivu-menu-item:hover, .ivu-menu-dark.ivu-menu-vertical .ivu-menu-submenu-title:hover {
    color: #fff;
    background: #2d8cf0 !important;
}


.menu-item span {
    display: inline-block;
    overflow: hidden;
    width: 69px;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
    transition: width .2s ease .2s;
}

.menu-item i {
    transform: translateX(0px);
    transition: font-size .2s ease, transform .2s ease;
    vertical-align: middle;
    font-size: 16px;
}

.collapsed-menu span {
    width: 0px;
    transition: width .2s ease;
}

.collapsed-menu i {
    transform: translateX(5px);
    transition: font-size .2s ease .2s, transform .2s ease .2s;
    vertical-align: middle;
    font-size: 22px;
}

.trigger-box {
    position: absolute;
}

.trigger-box:hover {
    background: #f7f7f7;
    box-shadow: 0px 0px 1px 0px #dce0e7;
}

.trigger-box .icon-change {
    cursor: pointer;
}


.top-pane {
    padding: 10px;
    background: #ffffff;
}

.top-pane .ivu-alert {
    margin: 0 !important;
}

/*Category*/
.category-menus .add-category-span {
    margin-left: 6px;
}

.ivu-alert {
    display: flex;
}

.warm-icon {
    font-size: 18px;
    margin-right: 6px;
    color: #f90;
}

/*Paper*/
.paper-menus, .category-menus {
    padding-bottom: 10px;
}

.paper-index, .subject-index, .category-index, .user-index {
    padding: 10px;
}

.paper-index, .category-index, .user-index {
    background: #ffffff;
}

.paper-menus .add-paper-span {
    margin-left: 6px;
}

.paper-subject-drawer .ivu-drawer-body {
    position: static;
}

.add-subject-form {
    margin-bottom: 55px;
}

.page-drawer-footer {
    width: 100%;
    position: absolute;
    bottom: 0px;
    left: 0px;
    border-top: 1px solid rgb(232, 232, 232);
    padding: 10px 16px;
    text-align: right;
    background: rgb(255, 255, 255);
}

.add-subject-option {
    width: 100%;
}


/*Subject*/
.code-row-bg .col .item-content {
    background: #e07e7e;
    width: 100%;
    height: 100px;
}

.subject-index .ivu-col-span-4 {
    flex: 0 0 24% !important;
    max-width: 24% !important;
}

/*Subject自定义宫格*/
.exam-lists {
    margin-top: 20px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
}

.exam-lists .exam-item {
    width: 32%;
    background: #fff;
    border-right: 5px;
    transition: all .3s ease 0s;
    margin: 0 2% 20px 0;
    cursor: pointer;
    position: relative;
    box-shadow: 0 -1px 1px 0px #e3e3e3;
}

.exam-lists .exam-item:hover {
    box-shadow: 0 -2px 0px 0px #f3450e;
    border-radius: 2px;
}

.exam-lists .exam-item .h {
    color: #000;
    padding: 10px 20px;
    white-space: nowrap; /*    //强制设置元素内文本不换行*/
    overflow: hidden; /*   //溢出文本隐藏（不隐藏，就谈不上省略）*/
    text-overflow: ellipsis;
}

.exam-lists .exam-item .over-difficulty {
    display: flex;
    line-height: 24px;
    margin-top: 20px;
    text-align: left;
    padding: 0 20px;
    margin-bottom: 19px;
    color: #737373;
}

.exam-lists .exam-item .over-text {
    margin-top: 20px;
    text-align: left;
    padding: 0 20px;
    margin-bottom: 19px;
    color: #737373;
}

.exam-lists .exam-item .create-time {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    text-align: left;
    padding: 0 20px;
    margin-bottom: 19px;
    color: #737373;
}

.exam-lists .exam-item:nth-child(3n) {
    margin-right: 0;
}

.exam-lists .exam-item .create-time .icon_label {
    padding: 5px;
    background: #bababa;
    color: #fff;
    margin-left: 10px;
}

.exam-lists .exam-item .over-difficulty span, .over-text .query-answer, .create-time .subject-icon {
    margin-right: 10px;
    color: #19212c;
}

.exam-lists .exam-item .option-menu {
    border-top: 1px solid #dadada;
    padding: 10px;
    text-align: center
}

.paper-subject-drawer ._textarea textarea {
    font-family: consolas;
    font-size: 16px;
}
